#modname "MA Jomon: The Courts of the Ryu v1.3"
#description "A middle era version of Jomon. Version 1.3"
#version 1.3

--Version 1.3
--Author: Shatner and Legowarrior
--Intended for use with CBM 1.92 or later.

--Uses
---NationID 84
---Sites 855, 856
---WeaponID 945, 946, 947
---ArmorID 275
---UnitID 3968 - 3998


-----Weapons

--Sacred Bow
#newweapon 945 
#name "Sacred Bow"
#nratt 1 -- same stats as the LA T'ien Ch'i Ancestor Vessel's Howling Bow, but with demon/undead damage instead of AoE fear
#range 35
#ammo 12
#dmg 13
#att 2
#flyspr 109 1
#nostr
#magic
#rcost 5
#dt_holy
#sound 14
#end

--Sacred Naginata
#newweapon 946 
#name "Sacred Naginata"
#nratt 1 -- same stats as a naginata but magic and holy
#dmg 10
#att 0
#def -1
#magic
#rcost 4
#len 4
#twohanded
#dt_holy
#sound 12
#end

--Sacred Dagger
#newweapon 947 
#name "Sacred Dagger"
#nratt 1 -- same stats as a dagger but magic and holy
#dmg 2
#att 1
#def 0
#magic
#rcost 0
#len 0
#dt_holy
#sound 7
#end

-- Acts as a very low protection shield, good for deflecting arrows but largely useless in melee
#newarmor 275
#name "Omamori of Protection"
#rcost 2
#type 4
#enc 0
#prot 4
#def 4
#end


-----New Units

	-- Overview
		-- Commanders: recruit-anywhere, land
-- Ninja: same as LA Jomon version, just changed the description to remove references to Daimyo because those aren't a thing yet in MA Jomon
-- Gokenin: same as LA Jomon but plus a longbow and lighter samurai armor
-- Mounted Gokenin: same as LA Jomon but in lighter samurai armor
-- Jito: an inexpensive, modestly armed and armored commander with a nice patrol bonus. Similar in practice to MA T'ien Ch'i's Eunuch.
-- Shugo: an upgraded version of the Mounted Gokenin, capable of commanding more troops
-- Wokou Captain: a pirate captain capable of taking 40 troops sailing. Has A1 + .25xW1 and a 2 point research malus. Dual wields wakazashi and carries a harpoon.
-- Monk of the Fivefold Path: same as LA Jomon. A weak mage-priest which doesn't require a lab to recruit. Your most efficient researcher. Can cast national sign spells.
-- Shugenja: same as LA Jomon. A weak earth mage with a random pick. Your cheapest semi-reliable source of E2 and one of the only map move-2 mages you have.
-- Onmyo-ji: identical to LA Jomon; sole source of astral magic. Expensive but veratile. Auto-summons an ethereal bird kami (shikigami) at the start of combat.
-- Saigu: expensive but powerful and versatile mage-priests. Old. Reduces unrest slightly and has linked random paths (AA/EE/FF/NN/WW)

		-- Commanders: recruit-anywhere in water, recruit-only in capital
-- Crab General: identical to LA Jomon.
-- Envoy of the Ryu: a W2H2 amphibious priest (your most powerful priest), with one pick from AEFN. Can lead 10 size-2 troops underwater. Efficient researcher, second only to Monk.
-- Ryujin: same as LA Jomon except it has better leadership and auto-casts "Power of the Spheres" in combat.


		-- Troops: recruit-anywhere, land
-- Ashigaru (yari): same as LA Jomon
-- Wokou: pirate shock troops. Dual wielding wakazashis and carry a harpoon. Slightly faster and braver than normal troops. Wear very light armor.
-- Bushi (naginata): like LA Jomon samurai but with crappier headgear. Rank-and-file recruit with average stats. Good against high prot enemies.
-- Bushi (no-dashi): like LA Jomon samurai but with crappier headgear. Rank-and-file recruit with average stats. Less damage than naginata but better combat stats.
-- Samurai Archer: slightly superior stats to LA version, but more expensive. Very capable at both melee and ranged combat but gold and resource intensive to recruit.
-- Samurai Cavalry: wields a yari and a longbow (meaning no charge bonus weaponry). Fast, with really solid combat stats but more expensive than average. Very good at repelling enemies.
-- Onna Bushi: sacred female warriors with enchanted naginatas and shielding amulet. Have high defense, high moral. Deal extra damage to undead/demons. Have homesickness 50, so they die two turns after leaving their home province. Good at defending their home fort or attacking adjacent provinces.

	-- Troops: recruit-anywhere in water
-- Shrimp Soldier: indentical to LA Jomon. Aquatic so they can't leave the water.
-- Shark Warrior: indentical to LA Jomon. An expensive but solid tank. Recruitable in capital as well.

	-- Troops: recruit-only in capital
-- Samurai of the Ryu: a sacred heavy samurai. Wears superior armor, wields a magical yari that does triple damage to larger foes. Amphibious. Good stats and map move-2. Very expensive.
-- Miko: sacred female archers with enchanted longbows and shielding amulet. Have excellent precision can threaten ethereal/mistform foes at range. Deal extra damage to undead/demons. Cheaper to maintain than Samurai Archers.

		-- Troops: unrecruitable
-- Ashigaru (shortbow): not recruitable in any forts but it shows up in your province defense. Peasants with bows, but surprisingly dangerous in close combat thanks to their wakazashi.




-------Commanders 

#selectmonster "Ninja"
#descr "Ninjas are Jomonese assassins. Before the coming of the New God, they were used by many clans in their secret wars. Now they serve the nation with their remarkable skills."
#end

--Gokenin - Same as later era, but without heavy samurai armor, and with longbow.
#newmonster 3984
#copystats 1249
#spr1 "./MA_Jomon_Alt/Blue_Gokenin_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Gokenin_2.tga"
#nametype 134
#descr "Gokenin are vassal samurai. They command smaller contingents of the Emperor's armies. They are sometimes mounted, but those that aren't carry longbows, one of the favored weapons of the Jomonese people."
#clearweapons
#cleararmor
#weapon "Long Bow"
#weapon "Katana"
#armor "Samurai Armor"
#armor "Kabuto"
#end

--Mounted Gokenin - Same as later era but without heavy samurai armor
#newmonster 3985
#copystats 1250
#spr1 "./MA_Jomon_Alt/Blue_Mounted_Gokenin_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Mounted_Gokenin_2.tga"
#nametype 134
#descr "Gokenin are vassal samurai. They command smaller contingents of the Emperor's armies. They are sometimes mounted, but those that aren't carry longbows, one of the favored weapons of the Jomonese people."
#cleararmor
#armor "Samurai Armor"
#armor "Kabuto"
#end

--Jito - No-Dashi, Ashigaru Armor, Jingasa, Weaker, decent leader with patrol bonus. Like the Eunuch, but with all parts attached
#newmonster 3986
#copystats 1238
#spr1 "./MA_Jomon_Alt/Blue_Jito_1.tga"
#spr1 "./MA_Jomon_Alt/Blue_Jito_1.tga"
#nametype 134
#name "Jito"
#descr "Leaders of their town or village, appointed by the Emperor, Jito's are knowledgeable about the local lands and are quick to find bandits or other unwelcome visitors. They are armed with with a powerful two-handed sword and don light scale armor and war hats. The hats are made of iron and used to cook rice when not worn."
#gcost 25
#clearweapons
#weapon "No-Dashi"
#patrolbonus 10
#okleader
#end

--Shugo - Better version of the Mounted Gokenin.
#newmonster 3987
#copystats 1251
#spr1 "./MA_Jomon_Alt/Blue_Shugo_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Shugo_2.tga"
#nametype 134
#name "Shugo"
#descr "Appointed by the Emperor to command his army, the Shugo are Samurai that have proven themselves loyal and capable. They command larger contingents of soldiers than either the Jito or Gokenin."
#gcost 40
#hp 13
#mor 14
#str 11
#att 12
#def 12
#ap 24
#mapmove 3
#cleararmor
#armor "Samurai Armor"
#armor "Kabuto"
#goodleader
#end

--Wokou Captain - Same as the unit. Decent Leader (40) and has sailing, A1 and a 25% of Water. -2 research penalty.
#newmonster 3988
#copystats 1238
#spr1 "./MA_Jomon_Alt/Wokou_Captain_1.tga"
#spr2 "./MA_Jomon_Alt/Wokou_Captain_2.tga"
#nametype 134
#name "Wokou Captain"
#descr "Pirates of the Jomonese people, the Wokou were shunned by their own people. But with the coming of the New God, the Wokou were given new status and position, valued for their skill in battle and knowledge of the outside world. They are armed with short swords and harpoons, they don leather armor and war hats. The hats are made of iron and used to cook rice when not worn. Only Wokou able to influence the wind are allowed to captain the ships large enough to take dozens of soldiers across the sea. Some are also skilled in water magic, though none are competent researchers."
#mor 11
#att 12
#def 11
#str 11
#ap 14
#gcost 50
#cleararmor
#clearweapons
#weapon "Wakizashi"
#weapon "Wakizashi"
#ambidextrous 2
#weapon "Harpoon"
#armor "Leather Cuirass"
#armor "Jingasa"
#sailing
#okleader
#magicskill 1 1 -- starts with air1
#custommagic 512 25 --25% chance of water1
#researchbonus -2 --research penalty so these guys aren't more cost efficient than the monks
#end

--Onmyo-ji - Same as later era.

--Envoy of the Ryu - Holy 2, Water 2, +1 FAWEN. Amphibious and can take 10 units underwater.
#newmonster 3990
#copystats 529 -- copying stats of the Sea Father for ability to take 10 size-2 units underwater
#spr1 "./MA_Jomon_Alt/Envoy_1.tga"
#spr2 "./MA_Jomon_Alt/Envoy_2.tga"
#name "Envoy of the Ryu"
#descr "With the coming the Ryujin, many new shrines and temples dedicated to Dragon Court sprung up. In order to lead these shrines, children with a talent for water magic were brought in to be taught the ways of the court. These Envoys became priests of the Ryu Court and ambassadors to the Jomon people. Trained to live both under the water as well as above, they can take men down with them to the sea.  With the coming of the New God, the Envoys now join the armies to support both the Jomon and the Ryujin in war."
#nametype 134
#gcost 180
#amphibian
#clearweapons
#cleararmor
#armor "Imperial Robes"
#weapon "Yari"
#clearmagic
#poorleader
#nomagicleader
#holy
#magicskill 2 2 -- starts with water2
#magicskill 8 2 -- starts with holy2
#custommagic 9600 100 -- gets an extra path in air, earth, fire or nature
#custommagic 10112 10 -- has a chance of an extra path in air, earth, fire, water or nature
#end

-- Saigu - H1, 1 Earth, 1 Nature, +2 FAWEN, Immune to Seduction, movement 1, Reduces 1/turn Unrest
#newmonster 3991
#copystats 803 -- MA T'ien Ch'i Celestial Master
#spr1 "./MA_Jomon_Alt/Saigu_1.tga"
#spr2 "./MA_Jomon_Alt/Saigu_2.tga"
#name "Saigu"
#descr "Chosen from amongst the daughters and sisters of the nobility, the Saigu are taught at a young age the sacred rites of the Jomon. They are sacred maidens who consort with kami and bring peace and calmness where ever they go, reducing unrest. They are giving sacred daggers and Omamori to help protect them from the Oni, who they are sworn to defeat whenever they come across them."
#nametype 133
#gcost 250
#mor 10
#female
#incunrest -1 --decreases unrest in it's province by 1 each turn
#startage 90
#maxage 50
#clearweapons
#cleararmor
#armor "Omamori of Protection"
#weapon "Sacred Dagger"
#clearmagic
#holy
#coldres 25
#fireres 25
#magicskill 3 1 -- starts with earth1
#magicskill 6 1 -- starts with nature1
#magicskill 8 1 -- starts with holy1
#custommagic 10112 200 -- gets a linked double pick in air, earth, fire, water or nature
#custommagic 10112 10 -- gets a 10% chance of an extra pick in air, earth, fire, water or nature
#end

#newmonster 3978
#copystats 2104 -- Ryujin
#copyspr 2104
#descr "The Ryujin are the sons of the Dragon King of the Eastern Sea. From the palace of four seasons, they have spread the dominion of the dragon king and set up courts in the image of Ryugo-jo, the dragon court. The Ryujin have sinuous bodies and are covered in scales. Spines run along their backs and their heads resemble camles with horns of a stag and the eyes of a demon. They always carry with them a burning pearl that is the source of their powers, and during combat they use it to further boost their already impressive magical prowess. They considered sacred by the populace of Jomon and are honored as generals by both humans and kami alike."
#goodleader
#okmagicleader
#onebattlespell "Power of the Spheres"
#shapechange 3989 -- can change into this shape at will
#secondshape 3989 -- will also change into this form if mortally wounded
#end

#newmonster 3989
#copystats 2105 -- Ryujin Dragon Form
#copyspr 2105
#descr "The Ryujin are the sons of the Dragon King of the Eastern Sea. From the palace of four seasons, they have spread the dominion of the dragon king and set up courts in the image of Ryugo-jo, the dragon court. The Ryujin have sinuous bodies and are covered in scales. Spines run along their backs and their heads resemble camles with horns of a stag and the eyes of a demon. They always carry with them a burning pearl that is the source of their powers, and during combat they use it to further boost their already impressive magical prowess. They considered sacred by the populace of Jomon and are honored as generals by both humans and kami alike."
#goodleader
#okmagicleader
#onebattlespell "Power of the Spheres"
#shapechange 3978 -- can change into this shape at will
#end


-------Troops

--Ashigaru in blue
#selectmonster "Ashigaru"
#spr1 "./MA_Jomon_Alt/Blue_Ashigaru_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Ashigaru_2.tga"
#end

--Ashigaru Bowmen (Shortbows) - Similar to bandits without stealth
#newmonster 3992
#copystats 1238
#spr1 "./MA_Jomon_Alt/Blue_Ashigaru_Bowman_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Ashigaru_Bowman_2.tga"
#name "Ashigaru Bowman"
#descr "Ashigaru are light infantry levied from the peasant population of Jomon and used to defend against invaders. They are armed with with short bows and swords and don light scale armor and war hats. The hats are made of iron and used to cook rice when not worn."
#nametype 134
#clearweapons
#gcost 10 -- bowman tend to be +2gp, -2att, -2def, -1moral compared to non-bowman
#att 8
#def 8
#mor 9
#weapon "Wakizashi"
#weapon "Short Bow"
#end

--Wokou - 2xwakizashi, Leather Cuirass, Jingasa
#newmonster 3993
#copystats 1238
#spr1 "./MA_Jomon_Alt/Wokou_1.tga"
#spr2 "./MA_Jomon_Alt/Wokou_2.tga"
#name "Wokou"
#descr "Pirates of the Jomonese people, the Wokou were shunned by their own people. But with the coming of the New God, the Wokou were given new status and position, valued for their skill in battle and knowledge of the outside world. They are each armed with two short swords and a harpoon, they don leather armor and war hats. The hats are made of iron and used to cook rice when not worn."
#nametype 134
#gcost 10
#mor 11
#att 11
#def 10
#ap 14
#cleararmor
#clearweapons
#weapon "Wakizashi"
#weapon "Wakizashi"
#ambidextrous 2
#weapon "Harpoon"
#armor "Leather Cuirass"
#armor "Jingasa"
#end

--Bushi (Naginata) - Similar Stat to later era Samurai but with less protection (Jingasa instead of Kabuto)
#newmonster 3994
#copystats 1240
#spr1 "./MA_Jomon_Alt/Blue_Bushi(Naginata)_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Bushi(Naginata)_2.tga"
#name "Bushi"
#descr "Bushi are warriors from the lower hierarchy of the Jomon, but are nonetheless more skilled than the Ashigaru. They wield either Pole Arms or great field swords in battle and don scale armor and war hats. The hats are made of iron and used to cook rice when not worn."
#nametype 134
#cleararmor
#armor "Samurai Armor"
#armor "Jingasa"
#end

--Bushi (No-Dashi) - Same as a above
#newmonster 3995
#copystats 1241
#spr1 "./MA_Jomon_Alt/Blue_Bushi(Sword)_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Bushi(Sword)_2.tga"
#name "Bushi"
#descr "Bushi are warriors from the lower hierarchy of the Jomon, but are nonetheless more skilled than the Ashigaru. They wield either Pole Arms or great field swords in battle and don scale armor and war hats. The hats are made of iron and used to cook rice when not worn."
#nametype 134
#cleararmor
#clearweapons
#weapon "No-Dashi"
#armor "Samurai Armor"
#armor "Jingasa"
#end

--Samurai Archer - Similar stat to O-ban or Go-Hatamoto, but with the weapons and armor of the Samurai Archer.
#newmonster 3996
#copystats 1243 -- same stats as O-ban
#spr1 "./MA_Jomon_Alt/Blue_Samurai_Archer_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Samurai_Archer_2.tga"
#name "Samurai Archer"
#descr "The longbow is a favored weapon in Jomon. Many samurai are as skilled in archery as they are in swordplay. During the times of the Ryu only the most skillful and noble warriors were considered Samurai. Though rare, their battle prowess is unmatched. Samurai archers use longbows of asymmetrical design."
#nametype 134
#gcost 14 -- better stats (including higher precision) so higher cost
#str 11 -- to make them in-between the O-ban and Go-hatamoto in stats
#mapmove 2
#clearweapons
#cleararmor
#weapon "Long Bow"
#weapon "Katana"
#armor "Samurai Armor"
#armor "Kabuto"
#end

--Samurai Cavalry - Same Stat line of Cavalry but with Samurai Armor instead of heavy samurai armor. Yari and bow instead of katana and lance.
#newmonster 3997
#copystats 1246
#spr1 "./MA_Jomon_Alt/Blue_Samurai_Cavalry_Yari_Bow_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Samurai_Cavalry_Yari_Bow_2.tga"
#nametype 134
#gcost 40
#cleararmor
#clearweapons
#descr "Horses are not very common in the mountainous regions of Jomon and the cavalry is not well developed. Horses are used more as a means of transport and status. Only samurai have the means to afford horses for warfare. Because the martial training of the samurai does not include the lance, mounted samurai fight with a yari and bow instead. Samurai archers use longbows of asymmetrical design which can be fired from horseback."
#prec 9 -- Mounted Archers generally have poorer precision than foot archers
#weapon "Yari"
#weapon 56 -- hoof
#weapon "Long Bow"
#armor "Samurai Armor"
#armor "Kabuto"
#end

--Onna Bushi - Naginata, Samurai Armor, Jingasa, Immune to Seduction, Fort Defense Bonus. High Morale, but everything else is basic. Build them to defend a region and scare undead/demons.
#newmonster 3998
#copystats 1240 -- copying the stats of the naginata samurai
#spr1 "./MA_Jomon_Alt/Onni-Bushi_1.tga"
#spr2 "./MA_Jomon_Alt/Onni-Bushi_2.tga"
#name "Onna Bushi"
#descr "The wives, daughters and widows of the samurai are often trained to protect their household from invasion while their samurai are away. During the rise of the Oni, these women were given sanctified weaponry to battle the invading demons and undead, as well as Omamori, enchanted talismans that ward against fire, ice and incoming blows. Now they are the sacred defenders of the Jomonese people and have been blessed with grace in battle and superior health. Unfortunately, these blessings prevent the Onna Bushi from leaving their home province, and those that do are reported to sicken and die after less than a season abroad."
#nametype 133
#gcost 15 -- really cheap considering but they're sacred, map move-1 and homesick-50 so it's justified
#hp 10
#mor 15 -- high moral
#str 10 -- high strength for female troops
#att 10 -- average attack
#def 14 -- elite human defense skill, reduced to 13 with naginata's defense penalty
#female
#holy
#homesick 50 -- 50% homesick so they can only go one province away from home province before having to return... or die.
#heal -- Unfortunately, going one province away and returning causes each Onni-Bushi to suffer 5 damage from homesick, giving many of them afflictions.
	  -- As such they need recuperation to heal those afflictions.
#coldres 25
#fireres 25
#mapmove 1
#cleararmor
#clearweapons
#weapon "Sacred Naginata"
#armor "Samurai Armor"
#armor "Jingasa"
#armor "Omamori of Protection"
#castledef 1
#end

--Miko - Sacred Bow triple damage to Undead and Demons) Imperial Robe, Jingasa,
#newmonster 3968
#copystats 348 -- Crystal Amazon
#spr1 "./MA_Jomon_Alt/Miko_1.tga"
#spr2 "./MA_Jomon_Alt/Miko_2.tga"
#name "Miko"
#descr "Trained at the Imperial Shrine in the art of archery and given both sacred bows as well as Omamori, the Miko are trained to hunt and kill demons and undead that make there way into the land of the Jomon. Their people consider them sacred and before the coming of the New God they traveled the countryside to help small villages and towns ward off invasion from the Oni. Now, the Miko travel with the armies that have rallied around the new deity of Jomon to continue their battle against the unholy and the unliving."
#nametype 133
#gcost 20
#mor 13
#mr 14
#str 9
#prec 11
#female
#holy
#coldres 25
#fireres 25
#cleararmor
#clearweapons
#armor "Imperial Robes"
#armor "Jingasa"
#armor "Omamori of Protection"
#weapon "Sacred Dagger"
#weapon "Sacred Bow"
#end

--Samurai of the Ryu
#newmonster 3983
#copystats 1245 -- copying the stats of the Aka-Oni Samurai
#spr1 "./MA_Jomon_Alt/Blue_Yari_Samurai_1.tga"
#spr2 "./MA_Jomon_Alt/Blue_Yari_Samurai_2.tga"
#name "Samurai of the Ryu"
#descr "The Samurai of the Ryu are elite soldiers who have sworn their services to the Dragon King of the Eastern Sea. They are given armor enchanted by the Ryujin themselves, which allow these warriors to breathe water and air with equal ease, as well as an enchanted yari capable of striking down larger foes with deadly efficiency. They are seen as sacred enforcers of the Dragon King's rule and they commonly serve as bodyguards for the Envoys of the Ryu."
#nametype 134
#gcost 60
#rcost 13 -- has to be made pretty high because their equipment has no resource cost
#att 13
#holy
#amphibian
#clearweapons
#cleararmor
#weapon 445 -- spear of the dragon king
#armor 132 -- kabuto
#armor 147 -- armor of the dragon king
#end

-- Shachihoko - a water kami like the Shikigami of the sea, identical stats but aquatic and faster to make up for the lack of flying. Also size-1 since the Shikigami was only size-2 because of the flying.
#newmonster 3977
#spr1 "./MA_Jomon_Alt/Shachihoko_1.tga"
#spr2 "./MA_Jomon_Alt/Shachihoko_2.tga"
#name "Shachihoko"
#descr "The Shachihoko is a kami of the sea with the head of a tiger and the body of a carp. Like many kami, they are not wholly of the physical realm and so are hard to harm with non-magical weapons. Their ethereal nature also allows them to move extremely quickly through the water, and as spirits of the sea they are unable to travel on to land. They are venerated by the people of Jomon and considered sacred. The Jomonese believe the Shachihoko are bringers of rain and many important structures are adorned with roof ornaments with the likeness of the Shachihoko in order to protect them from fire."
#nametype 132
#gcost 0
#rcost 1
#hp 7
#size 1
#att 12
#def 12
#str 6
#prot 0
#prec 8
#mr 14
#mor 14
#enc 3
#mapmove 1
#ap 20 -- same as a Triton
#weapon "Bite"
#aquatic
#animal
#holy
#magicbeing
#ethereal
#noitem
#poormagicleader
#end

-------Pretenders

--Son of the Dragon King
#newmonster 3969
#copystats 1580 --Ryutara, son of the dragon king hero
#copyspr 1580 --Ryutara, son of the dragon king hero
#descr "The Dragon King of the Eastern Sea sired a son with the daughter of a simple fisher man. When the boy grew up, it became evident that he had no mortal father. He was stronger, brighter and more skilled than the other villagers. When he slew a samurai who threatened his mother, he was hunted by the local lord. He fled by boat, but was intercepted and thrown into the sea. But he didn't drown. Instead, he was taken to his father's abode and taught his true legacy. He has since returned from the sea and seeks to expand his father's dominion after achieving godhood. He wields enchanted armaments given to him by his father, is skilled in water magic, and is able to easily master other magical paths. He can bring an entire legion with him into the ocean and his father's elite guard, the mighty shark warriors, will rally around him each month he resides in friendly dominion."
#gcost 75
#hp 25
#str 15
#mor 30
#mr 18
#maxage 1000
#itemslots 15494 -- 2 hands, 1 head, 1 body, 1 feet, 2 misc.
#startdom 3
#spreaddom 2
#clearmagic
#magicskill 2 3 -- water3
#domsummon2 2103 --Shark Warrior
#pathcost 20
#restrictedgod 84
#end


-- All of these are the same as they are in CBM 1.92, just copied and restricted to this nation
--Lord of Storms
#newmonster 3979
#copystats 961
#copyspr 961
#name "Lord of Storms"
#gcost 25
#descr "The Lord of Storms is a huge demigod sprung from the depths of the ocean. His Dominion is the sea and storms and his physical might is rivalled only by that of the great Titans. He is a fickle and cruel being and likes to raise storms and currents to destroy ships and drown sailors. However, he sometimes chooses to spare some of his victims and can grant some his followers the ability to breathe underwater."
#magicskill 1 2 
#magicskill 2 1
#cleararmor
#armor "Crown"
#restrictedgod 84
#end

--Lord of Plenty
#newmonster 3980
#copystats 1339
#copyspr 1339
#gcost 50
#gemprod 4 1
#gemprod 3 1
#descr "The Lord of Plenty has the special power of bringing good fortune to those who surround him. Because of his fortune bringing and other magical powers, he has always been worshipped by the lesser people and now he is out to become the True God. As lord of plenty, he brings a constant stream of riches in the form of magic gems." 
#spreaddom 2
#restrictedgod 84
#end

--Lady of Fortune
#newmonster 3981
#copystats 1344
#copyspr 1344
#gcost 50
#spreaddom 2
#restrictedgod 84 
#end

--Celestial General
#newmonster 3982
#copystats 1345
#copyspr 1345
#gcost 50
#summon1 2881
#summon5 2880
#descr "This wise man was once General of the East in the old Pantokrator's armies. After the General of the West had almost been slain, the Pantokrator got worried. As a precaution he granted his general a divine body so he would not easily be slain. Now that the Pantokrator has fallen, the general who calls himself the Celestial General is out to become the new God. Soldiers flock to his cause in whatever province he resides."
#spreaddom 2
#restrictedgod 84
#end


-------New Heroes
-- Right now, MA Jomon has access to 5 heroes, 2 of which are from vanilla Dom3 or CBM (the Red Tengu and the Member of the Shadow League, respectively)
-- New heroes are Otohimo (the Ryujin Onmyo-ji), Norinaga (Master of the Fivefold Signs), and Ichiyo (the Saigu Imposter)

-- The Saigu Imposter
-- F2A1N1E1D2H1 Saigu with cold-blooded, stealthy, spy, poison immune, fire immune, heretic-2 (so she counts as an H1 priest trying to lower dominion) and she raises unrest by 4 each turn instead of decreasing it
#newmonster 3976
#copystats 803 -- MA T'ien Ch'i Celestial Master
#spr1 "./MA_Jomon_Alt/Saigu_Imposter_1.tga"
#spr2 "./MA_Jomon_Alt/Saigu_Imposter_2.tga"
#name "Saigu"
#descr "Chosen from amongst the daughters and sisters of the Emperor, the Saigu are taught at a young age the sacred rites of the Jomon. This Saigu is unusual for her refusal to handle a holy dagger and her ability to commune with the spirits of the netherworld. Unlike other Saigu, unrest and heretical behavior seem to follow in her wake; many have found this strange but no one has managed to actually catch her misbehaving."
#nametype 133
#gcost 0
#mor 13
#female
#incunrest 1 --increases unrest in it's province by 1 each turn
#heretic 2 -- decreases dominion of current province (friendly or hostile) as though she were a praying, enemy H2 priest
#startage 200
#maxage 250
#clearweapons
#cleararmor
#armor "Omamori of Protection"
#weapon "Dagger"
#holy
#coldres 25
#fireres 25
#poisonres 100
#coldblooded
#stealthy 25
#spy
#itemslots 31878 -- 2 hands, 1 head, 1 body, 1 feet, 3 misc.
#clearmagic
#magicskill 1 1 -- air1
#magicskill 3 1 -- earth1
#magicskill 6 1 -- nature1
#magicskill 0 2 -- fire2
#magicskill 5 2 -- death2
#magicskill 8 1 -- holy1
#shapechange 3975 -- can change into her Hannya form at will
#secondshape 3975 -- will also change into her Hannya form if mortally wounded
#end

--The Saigu Imposter Hannya Form
#newmonster 3975
#copystats 1432 -- EA Yomi's Hannya
#copyspr 1432
#name "Hannya Spy"
#descr "The Hannya is a witch who has made a pact with an Oni King. In return for her servitude, she is granted magical power. A fiery aura and a serpent tail are also given to her to remind her of who her true masters are. This was once a Jomon sorceress who abandoned her people, choosing instead to advance her own power by joining the Yomi. When the Jomonese people fled the advancing Yomi hordes, her master commanded her to follow the refugees, infiltrate their new society among the Ryujin, and undermine it from within. She has insinuated herself into the ranks of the Saigu where she subtly corrupts those around her. She uses her powers of necromacy to report back to her netherworld master. In her Hannya form, she loses her sacred status but increases her command of fire."
#gcost 0
#incunrest 4 --increases unrest in it's province by 4 each turn
#heretic 2 -- decreases dominion of current province (friendly or hostile) as though she were a praying, enemy H2 priest
#stealthy 25
#spy
#magicboost 0 1 -- +1 to fire
#itemslots 29830 -- 2 hands, 1 head, 1 body, 3 misc., NO FEET
#shapechange 3976 -- can change into her Saigu form at will
#end

-- Master of the Fivefold Signs 
-- H3, 1F1A1W1E1N, he can cast any of the sign spells, has an extra long life, and is ethereal
#newmonster 3974
#spr1 "./MA_Jomon_Alt/FiveFoldMaster_1.tga"
#spr2 "./MA_Jomon_Alt/FiveFoldMaster_2.tga"
#copystats 2098 -- Monk of the Fivefold Path
#name "Master of the Fivefold Path"
#descr "There once was a wokou pirate who, through a series of shameful events, found himself abandoned on the beach of a tiny island while his mutinous crew sailed away. The only inhabitant of the island was an aging monk who took the abandoned wokou in and, for the remaining years of his life, taught the former pirate the ways of the Fivefold Path. The solitary pupil stayed on the island for more than a century, his life prolonged by his asceticism, until the rise of the new god compelled him to leave his sanctuary. The enlightened monk now exists on a higher plane of being and is no longer truly human. He can travel long distances by thought as well as allow most blows to pass harmlessly through him. He alone is capable of producing all the signs of the Fivefold Path."
#gcost 0
#hp 12
#mor 30 -- immune to fear
#mr 18
#startage 150
#maxage 500
#ethereal
#magicbeing
#neednoteat
#mapmove 4
#flying
#stormimmune
#itemslots 31878 -- 2 hands, 1 head, 1 body, 1 feet, 3 misc.
#holy
#clearweapons
#weapon "Quarterstaff"
#clearmagic
#magicskill 0 1 -- fire1
#magicskill 1 1 -- air1
#magicskill 2 1 -- water1
#magicskill 3 1 -- earth1
#magicskill 6 1 -- nature1
#magicskill 8 3 -- holy3
#end

-- Otohimo, the Ryujin Onmyo-ji, mage landshape
-- W3S3, prevents bad events, summons Shikigami/Shachihoko each turn
#newmonster 3973
#copystats 2104 -- the vanilla Ryujin mage form (no leadership changes, no onebattlespell)
#spr1 "./MA_Jomon_Alt/Ryujin_Seer_MageForm_1.tga"
#spr2 "./MA_Jomon_Alt/Ryujin_Seer_MageForm_2.tga"
#name "Ryujin Onmyo-ji"
#descr "The Ryujin are the sons of the Dragon King of the Eastern Sea and they always carry with them a burning pearl that is the source of their powers. This dragon was arrogant, even by the standards of other Ryujin. He thought himself superior to all the people and kami of Jomon until a kitsune tricked him into giving up his burning pearl. Shamed by the loss of his power, he fled the sea to escape the ridicule of his kind. All this ended when he encountered a powerful Onmyo-ji, who taught him the secrets of Onmyo astrology. He has since forged himself a new pearl made of pure starlight and the kami of the surrounding area are drawn to him. The light of the northern star radiates from his pearl during combat, bolstering all astral mages present."
#gcost 0
#startage 600
#itemslots 15494 -- 2 hands, 1 head, 1 body, 1 feet, 2 misc. (one more misc. than a Ryujin normally gets)
#clearmagic
#magicskill 2 3 -- water3
#magicskill 4 3 -- astral3
#nobadevents 9
#expertmagicleader
#onebattlespell "Light of the Northern Star"
#watershape 3971
#summon1 2092 -- Shikigami
#shapechange 3972 -- can change into his dragon land form at will
#secondshape 3972 -- will also change into his dragon land form if mortally wounded
#end

-- Otohimo, the Ryujin Onmyo-ji, dragon landshape
-- W3S3, prevents bad events, summons Shikigami/Shachihoko each turn
#newmonster 3972
#copystats 2105 -- the vanilla Ryujin dragon form (no leadership changes, no onebattlespell)
#spr1 "./MA_Jomon_Alt/Ryujin_Seer_DragonForm_1.tga"
#spr2 "./MA_Jomon_Alt/Ryujin_Seer_DragonForm_2.tga"
#name "Ryujin Onmyo-ji"
#descr "The Ryujin are the sons of the Dragon King of the Eastern Sea and they always carry with them a burning pearl that is the source of their powers. This dragon was arrogant, even by the standards of other Ryujin. He thought himself superior to all the people and kami of Jomon until a kitsune tricked him into giving up his burning pearl. Shamed by the loss of his power, he fled the sea to escape the ridicule of his kind. All this ended when he encountered a powerful Onmyo-ji, who taught him the secrets of Onmyo astrology. He has since forged himself a new pearl made of pure starlight and the kami of the surrounding area are drawn to him. The light of the northern star radiates from his pearl during combat, bolstering all astral mages present."
#gcost 0
#startage 600
#itemslots 12288 -- 2 misc. (one more misc. than a Ryujin normally gets)
#clearmagic
#magicskill 2 3 -- water3
#magicskill 4 3 -- astral3
#nobadevents 9
#expertmagicleader
#onebattlespell "Light of the Northern Star"
#watershape 3970
#summon1 2092 -- Shikigami
#shapechange 3973 -- can change into his mage land form at will
#end

-- Otohimo, the Ryujin Onmyo-ji, mage watershape
-- W3S3, prevents bad events, summons Shikigami/Shachihoko each turn
#newmonster 3971
#copystats 2104 -- the vanilla Ryujin mage form (no leadership changes, no onebattlespell)
#spr1 "./MA_Jomon_Alt/Ryujin_Seer_MageForm_1.tga"
#spr2 "./MA_Jomon_Alt/Ryujin_Seer_MageForm_2.tga"
#name "Ryujin Onmyo-ji"
#descr "The Ryujin are the sons of the Dragon King of the Eastern Sea and they always carry with them a burning pearl that is the source of their powers. This dragon was arrogant, even by the standards of other Ryujin. He thought himself superior to all the people and kami of Jomon until a kitsune tricked him into giving up his burning pearl. Shamed by the loss of his power, he fled the sea to escape the ridicule of his kind. All this ended when he encountered a powerful Onmyo-ji, who taught him the secrets of Onmyo astrology. He has since forged himself a new pearl made of pure starlight and the kami of the surrounding area are drawn to him. The light of the northern star radiates from his pearl during combat, bolstering all astral mages present."
#gcost 0
#startage 600
#itemslots 15494 -- 2 hands, 1 head, 1 body, 1 feet, 2 misc. (one more misc. than a Ryujin normally gets)
#clearmagic
#magicskill 2 3 -- water3
#magicskill 4 3 -- astral3
#nobadevents 9
#expertmagicleader
#onebattlespell "Light of the Northern Star"
#landshape 3973
#summon1 3977 -- Shachihoko
#shapechange 3970 -- can change into his dragon water form at will
#secondshape 3970 -- will also change into his dragon water form if mortally wounded
#end

-- Otohimo, the Ryujin Onmyo-ji, dragon watershape
-- W3S3, prevents bad events, summons Shikigami/Shachihoko each turn
#newmonster 3970
#copystats 2105 -- the vanilla Ryujin dragon form (no leadership changes, no onebattlespell)
#spr1 "./MA_Jomon_Alt/Ryujin_Seer_DragonForm_1.tga"
#spr2 "./MA_Jomon_Alt/Ryujin_Seer_DragonForm_2.tga"
#name "Ryujin Onmyo-ji"
#descr "The Ryujin are the sons of the Dragon King of the Eastern Sea and they always carry with them a burning pearl that is the source of their powers. This dragon was arrogant, even by the standards of other Ryujin. He thought himself superior to all the people and kami of Jomon until a kitsune tricked him into giving up his burning pearl. Shamed by the loss of his power, he fled the sea to escape the ridicule of his kind. All this ended when he encountered a powerful Onmyo-ji, who taught him the secrets of Onmyo astrology. He has since forged himself a new pearl made of pure starlight and the kami of the surrounding area are drawn to him. The light of the northern star radiates from his pearl during combat, bolstering all astral mages present."
#gcost 0
#startage 600
#itemslots 12288 -- 2 misc. (one more misc. than a Ryujin normally gets)
#clearmagic
#magicskill 2 3 -- water3
#magicskill 4 3 -- astral3
#nobadevents 9
#expertmagicleader
#onebattlespell "Light of the Northern Star"
#landshape 3972
#summon1 3977 -- Shachihoko
#shapechange 3971 -- can change into his mage water form at will
#end


-----Spells

-------Spells from CBM 1.92

-- Making a new copy of Ambush of Tigers, since that's what CBM1.92 seems to be doing
#newspell
#copyspell 196 -- Ambush of Tigers
#restricted 84
#end

-- Also making new spells to summon Shikigami and Shachihoko
#newspell
#name "Summon Shikigamis"
#descr "An Omnyo-ji uses magic similar to how he attracted his familiar to entice 5 Shikigamis, ethereal bird kami, to serve the mage's cause."
#school 0 -- Conjuration
#researchlevel 3
#path 0 4 -- astral
#pathlevel 0 2 -- astral-2
#fatiguecost 100
#effect 10001 --summon a non-commander unit
#damage 2092 -- Shikigami
#nreff 5
#restricted 84 -- MA Jomon
#end

#newspell
#name "Summon Shikigami Flock"
#descr "An Omnyo-ji uses magic similar to how he attracted his familiar to entice a flock of 40 Shikigamis, ethereal bird kami, to serve the mage's cause."
#school 0 -- Conjuration
#researchlevel 8
#path 0 4 -- astral
#pathlevel 0 4 -- astral-4
#fatiguecost 1000
#effect 10001 --summon a non-commander unit
#damage 2092 -- Shikigami
#nreff 40
#restricted 84 -- MA Jomon
#end

#newspell
#name "Conjure Shikigamis"
#descr "Using a more powerful version of the spell he uses to summon his familiar, an Omnyo-ji conjures several Shikigamis, ethereal bird kami, to aid him in battle. The more powerful the mage, the more kami will be conjured."
#school 0 -- Conjuration
#researchlevel 4
#path 0 4 -- astral
#pathlevel 0 2 -- astral-2
#fatiguecost 100
#effect 1 --summon a monster
#damage 2092 -- Shikigami
#nreff 1002 -- summon 2 + 1/level of astral
#restricted 84 -- MA Jomon
#end

#newspell
#name "Conjure Shikigami Flock"
#descr "Using a more powerful version of the spell he uses to summon his familiar, an Omnyo-ji conjures an entire flock of Shikigamis, ethereal bird kami, to aid him in battle. The more powerful the mage, the more kami will be conjured."
#school 0 -- Conjuration
#researchlevel 7
#path 0 4 -- astral
#pathlevel 0 2 -- astral-2
#fatiguecost 200
#effect 1 --summon a monster
#damage 2092 -- Shikigami
#nreff 1013 -- summon 13 + 1/level of astral
#restricted 84 -- MA Jomon
#end

#newspell
#name "Summon Shachihokos"
#descr "A mage summons a group of 5 Shachihokos, ethereal kami with the head of a tiger and the body of carp, and convinces them to serve the mage's cause."
#spec 41943040 -- Only underwater
#school 0 -- Conjuration
#researchlevel 3
#path 0 2 -- water
#pathlevel 0 2 -- water-2
#fatiguecost 100
#effect 10001 --summon a non-commander unit
#damage 3977 -- Shachihoko
#nreff 5
#restricted 84 -- MA Jomon
#end

#newspell
#name "Summon Shachihoko School"
#descr "A mage summons an entire school of 40 Shachihokos, ethereal kami with the head of a tiger and the body of carp, and convinces them to serve the mage's cause."
#spec 41943040 -- Only underwater
#school 0 -- Conjuration
#researchlevel 8
#path 0 2 -- water 
#pathlevel 0 4 -- water-4
#fatiguecost 1000
#effect 10001 --summon a non-commander unit
#damage 3977 -- Shachihoko
#nreff 40
#restricted 84 -- MA Jomon
#end

#newspell
#name "Conjure Shachihokos"
#descr "A mage conjures several Shachihokos, ethereal kami with the head of a tiger and the body of carp,  to aid him in battle. The more powerful the mage, the more kami will be conjured."
#spec 41943040 -- Only underwater
#school 0 -- Conjuration
#researchlevel 4
#path 0 2 -- water 
#pathlevel 0 1 -- water-1
#fatiguecost 100
#effect 1 --summon a monster
#damage 3977 -- Shachihoko
#nreff 1004 -- summon 4 + 1/level of water
#restricted 84 -- MA Jomon
#end

#newspell
#name "Conjure Shachihoko School"
#descr "A mage conjures an entire school of Shachihokos, ethereal kami with the head of a tiger and the body of carp,  to aid him in battle. The more powerful the mage, the more kami will be conjured."
#spec 41943040 -- Only underwater
#school 0 -- Conjuration
#researchlevel 7
#path 0 2 -- water 
#pathlevel 0 2 -- water-2
#fatiguecost 200
#effect 1 --summon a monster
#damage 3977 -- Shachihoko
#nreff 2016 -- summon 16 + 2/level of water
#restricted 84 -- MA Jomon
#end

-- For all the other LA Jomon spells we're borrowing, we're merely grabbing the spell and restricting it to LA Jomon (56) and MA Jomon (84)
#selectspell "Contact Jigami"
#restricted 56
#restricted 84
#end

#selectspell "Summon Karasu Tengu"
#restricted 56
#restricted 84
#end

#selectspell "Summon Konoha Tengus"
#restricted 56
#restricted 84
#end

#selectspell "Contact Dai Tengu"
#restricted 56
#restricted 84
#end

#selectspell "Contact Nushi"
#restricted 56
#restricted 84
#end

#selectspell "Contact Kitsune"
#restricted 56
#restricted 84
#end

#selectspell "Contact Jigami"
#restricted 56
#restricted 84
#end

#selectspell "Contact Mori-no-kami"
#restricted 56
#restricted 84
#end

#selectspell "Summon Ujigami"
#restricted 56
#restricted 84
#end

#selectspell "Contact Kaijin"
#restricted 56
#restricted 84
#end

#selectspell "Contact Tatsu"
#restricted 56
#restricted 84
#end

#selectspell "Summon Kenzoku"
#restricted 56
#restricted 84
#end

#selectspell "Contact Yama-no-kami"
#restricted 56
#restricted 84
#end

#selectspell "Teaching Sign"
#restricted 56
#restricted 84
#end

#selectspell "Fear-not Sign"
#restricted 56
#restricted 84
#end

#selectspell "Welcome Sign"
#restricted 56
#restricted 84
#end

#selectspell "Earth-touching Sign"
#restricted 56
#restricted 84
#end

#selectspell "Meditation Sign"
#restricted 56
#restricted 84
#end



-----Nation Changes

#newsite 855
#name "Submerged Barracks"
#homemon 2103 -- Shark Warrior
#homecom 2102 -- Crab General
#gems 2 1 -- produces 1 water gem
#path 2
#level 0 -- found without searching
#rarity 5 -- unique
#loc 64 -- must be on the coast
#end

#newsite 856
#name "Enclave of the Ryu"
--homemon 3983 -- Samurai of the Ryu
#homecom 3990 -- Envoy of the Ryu
#homecom 3978 -- MA Ryujin
#gems 2 1 -- produces 1 water gem
#path 2
#level 0 -- found without searching
#rarity 5 -- unique
#loc 64 -- must be on the coast
#end

#newsite 857
#name "Imperial Shrine"
#homemon 3968 -- Miko
#gems 1 1 -- produces 1 air gem
#gems 3 1 -- produces 1 earth gem
#gems 6 1 -- produces 1 nature gem
#path 8
#level 0 -- found without searching
#rarity 5 -- unique
#loc 64 -- must be on the coast
#end 


#selectnation 84
#name "Jomon"
#era 2
#brief "Jomon is a feudal nation of human warlords and their samurai warriors. Ninja assassins complement the military forces."
#epithet "The Courts of the Ryu"
#summary "Race: Humans	
Military: Light infantry, samurai archers, samurai infantry, samurai cavalry, ninja assassins	
Magic: Average, Astral, Earth, Nature, Fire, Air, Water
Priests: Weak"
#descr "During the time of the Oni, many humans fled the mountains and surrounding areas and traveled to the coast seeking protection. The Ryujin came upon these humans, and offered them succor in exchange for treasure and allegiance. Although wary of exchanging one master for another, the Jomon saw no other choice and agreed. With the fall of the Oni, a new empire was formed around the worship of the Dragon King and the lesser kami of the land. A strict hierarchy formed with the Emperor on top and the peasant classes at the bottom. The Ryujin played the clans against each other, trying to gain prestige and fortune at the expanse of other Ryujin. With the coming of the new God, the Ryujin have united with the Jomonese to conquer new territory and find new riches for themselves."
#flag "./MA_Jomon_Alt/Trialflag.tga"
#color .3 .3 .3 -- I'm going for gray
#labcost 500
#templecost 400
#templepic 18 -- Far East, optionally could use 15 (also called Far East)
#clearsites
#startsite "Submerged Barracks"
#startsite "Enclave of the Ryu"
#startsite "Imperial Shrine"
#clearrec

--Recruitables
#addreccom 1257 -- Ninja
#addreccom 3984 -- Gokenin
#addreccom 3988 -- Wokou Captain
#addreccom 3986 -- Jito
#addreccom 3985 -- Mounted Gokenin
#addreccom 3987 -- Shugo
#addreccom 2098 -- Monk of the Fivefold Path
#addreccom 1254 -- Shugenja
#addreccom 1259 -- Omnyo-ji
#addreccom 3991 -- Saigu

#uwcom1 2102 -- Crab General
#uwcom2 3990 -- Envoy of the Ryu
#uwcom3 3978 -- MA Ryujin

#addrecunit 1238 -- Ashigaru (Yari)
#addrecunit 3993 -- Wokou
#addrecunit 3994 -- Bushi (Naginata)
#addrecunit 3995 -- Bushi (No-Dashi)
#addrecunit 3996 -- Samurai Archer
#addrecunit 3997 -- Samurai Cavalry (Yari and Bow)
#addrecunit 3998 -- Onni-Bushi

#uwunit1 2101 -- shrimp soldier
#uwunit2 2103 -- shark warrior


--Heroes
#hero1 1915 ---Kenji, the Red Tengu
#hero2 3973 --Otohimo, the Ryujin Onmyo-ji
#hero3 3974 --Norinaga, Master of the Fivefold Signs
#hero4 3976 --Ichiyo, the Saigu Imposter
#multihero1 2800 -- Member of the Shadow League

--Starting Units
#startcom 3984 -- Gokenin
#startscout 1257 -- Ninja
#startunittype1 1238 -- Ashigaru (Yari)
#startunitnbrs1 15
#startunittype2 3996 -- Samurai Archer
#startunitnbrs2 10

--Province Defense
#defcom1 3984 -- Gokenin
#defcom2 3990 -- Envoy of Ryu
#defunit1 1238 -- Ashigaru (Yari)
#defunit1b 3992 -- Ashigaru (Short Bow)
#defunit2 3995 -- Bushi (No-Dashi)
#defunit2b 3996 -- Samurai Archer
#defmult1 20
#defmult1b 20
#defmult2 10
#defmult2b 10

--Forts
#startfort 3 -- Fortified City
#defaultfort 40 -- Fortress
#mountainfort 37 -- Hill Fortress
#forestfort 34 -- Forest Fortress
#swampfort 11 -- Swamp Fort
#uwfort 12 -- Kelp Fortress
#deepfort 13 -- Kelp Citadel

#end